#! /bin/bash
for i in `cat ip.txt`
do
	ping -c1 $i &>/dev/null
	if [ $? -eq 0 ];then
		echo "$i is up.."
	else
		echo "$i is down.."
	fi
done
